package com.har.modules.web.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.har.common.utils.PageUtils;
import com.har.common.utils.Query;
import com.har.modules.web.dao.DefinedSafeDao;
import com.har.modules.web.entity.DefinedSafeEntity;
import com.har.modules.web.service.DefinedSafeService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("definedSafeService")
public class DefinedSafeServiceImpl extends ServiceImpl<DefinedSafeDao, DefinedSafeEntity> implements DefinedSafeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<DefinedSafeEntity> page = this.selectPage(
                new Query<DefinedSafeEntity>(params).getPage(),
                new EntityWrapper<DefinedSafeEntity>()
        );

        return new PageUtils(page);
    }

}
